package com.zhuiyun.pm.sys.bidmanagement.mapper;

import com.zhuiyun.pm.config.BaseMapper;
import com.zhuiyun.pm.page.PageRequest;
import com.zhuiyun.pm.sys.bidmanagement.entity.GoodsInfo;
import com.zhuiyun.pm.sys.menu.entity.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: mapper
 * @ClassName: PublishMapper
 * @Author: YB
 * @Date: 2023/3/14 8:37
 * @Version: 1.0
 */
@Mapper
public interface GoodsInfoMapper {

    /**
        * @Author yuanb
        * @Description
        * @Date 2023/3/14 12:54
        * @Return java.util.List<com.alipay.api.domain.GoodsInfo>
        * @param goodsInfo
        * 竞拍管理全查
    */
    List<GoodsInfo> goodsInfoSelectAll(@Param("goodsInfo") GoodsInfo goodsInfo, PageRequest pageRequest);

    /**
     * @Author yuanb
     * @Description
     * @Date 2023/3/15 8:37
     * @Return int
     * @param id
     * 修改审核成功
     */
    int goodsInfoUpdatePass(Integer id);
    /**
     * @Author yuanb
     * @Description
     * @Date 2023/3/15 8:40
     * @Return int
     * @param id
     * 修改驳回
     */
    int goodsInfoUpdateReject(Integer id);
    /**
     * @Author yuanb
     * @Description
     * @Date 2023/3/15 8:37
     * @Return int
     * @param id
     * 修改二次审核成功
     */
    int goodsInfoUpdateSecondary(Integer id);
    /**
     * @Author yuanb
     * @Description
     * @Date 2023/3/15 8:37
     * @Return int
     * @param id
     * 修改二次驳回
     */
    int goodsInfoUpdateRejectSecondary(Integer id);

    /**
        * @Author yuanb
        * @Description
        * @Date 2023/4/1 9:38
        * @Return java.util.List<com.zhuiyun.pm.sys.bidmanagement.entity.GoodsInfo>
        * * @param goodsInfo
        * @param pageRequest
     * 竞品跟踪
    */

    List<GoodsInfo> goodsInfoFollow(@Param("goodsInfo") GoodsInfo goodsInfo, PageRequest pageRequest);

    /**
        * @Author yuanb
        * @Description
        * @Date 2023/4/2 18:43
        * @Return int
        * * @param id
        * 竞品跟踪下架
    */
    int goodsInfoUndercarriage(Integer id);

}
